package io;

import java.io.IOException;
import java.io.ObjectOutputStream;
import java.io.OutputStream;

public class ObjectWriter {

	public static void main(String[] args) throws IOException{
		OutputStream os = System.out;
		ObjectOutputStream oos = new ObjectOutputStream(os);
		
		City city = new City("Istanbul", 150000);
		oos.writeObject(city);
		oos.close();
	}
	
}
